package com.alorm.core.annotation;

import java.util.List;

import com.impetus.annovention.listener.ClassAnnotationDiscoveryListener;

public class AnnotationClass implements ClassAnnotationDiscoveryListener {

	private List<Class> listClass;

	public AnnotationClass(List<Class> l) {
		listClass = l;
	}

	public String[] supportedAnnotations() {
		return new String[] { EntityClass.class.getName() };
	}

	public void discovered(String classe, String name) {
		try {
			listClass.add(Class.forName(classe));
		} catch (ClassNotFoundException e) {
			throw new RuntimeException(e);
		}

	}

}
